<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2017/3/3
  Time: 14:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
    String userName = (String) session.getAttribute("userName");
%>
<%@ include file="../frame/head.jsp" %>
<html>
<head>
    <title>template</title>
</head>
<body>
<section>
    <%@include file="../frame/top.jsp" %>
    <section class="boxMain">
        <section class="hbox stretch">
            <%@include file="../frame/aside.jsp" %>
            <div>
                <header>
                    <h3 style="color: #0b6cbc;text-align: center">试卷上传</h3>
                </header>
                <hr>
                <div>
                <form action="${basePath}/exampaperController/uploadFile"
                      enctype="multipart/form-data" method="post">
                    <table class="table">
                        <tr class="success">
                            <td>上传人：</td>
                            <td><%=userName%></td>
                        </tr>
                        <tr class="success">
                            <td>上传文件：</td>
                            <td><input type="file" name="file" class="btn btn-info" style="width: 280px;"></td>
                        </tr>
                        <br>
                        <tr>
                            <td></td>
                            <td><input type="submit" class="btn btn-success" style="width: 280px;" value="提交"></td>
                        </tr>
                    </table>
                </form>
                </div>
            </div>
        </section>
    </section>
</section>
</body>
</html>

